package com.skystar.commons.exception;

import com.skystar.commons.hmenum.ResultCodeEnum;
/**
 * @类名: ServiceException
 * @描述: TODO
 * @作者: zfh
 * @时间: 2016-1-21 下午4:47:19
 */
public class ServiceException extends BaseExcetion {

	/**
	 * @属性名: serialVersionUID
	 * @属性类型: long
	 * @描述: TODO
	 */
	private static final long serialVersionUID = -6635674994430619368L;

	/**
	 * @Title:ServiceException
	 * @描述:TODO
	 * @param e
	 */
	protected ServiceException(BaseExcetion e) {
		super(e);
	}

	public ServiceException(int code) {
		super(code);
	}

	public ServiceException(int code, String msg) {
		super(code, msg);
	}

	public ServiceException(int code, Throwable cause) {
		super(code, cause);
	}

	public ServiceException(int code, String msg, Throwable cause) {
		super(code, msg, cause);
	}

	public ServiceException(ResultCodeEnum codeEnum, Throwable cause) {
		super(codeEnum, cause);
	}

	public ServiceException(ResultCodeEnum codeEnum, String message, Throwable cause) {
		super(codeEnum, message, cause);
	}

	public ServiceException(ResultCodeEnum codeEnum, String message) {
		super(codeEnum, message);
	}

	public ServiceException(ResultCodeEnum codeEnum) {
		super(codeEnum.getCode(), codeEnum.getMsg());
	}

}
